<?php

/**
 * @author nhatnam
 * @copyright 2011
 */

require('../Model/clstheloai.php');

if($_SERVER['REQUEST_METHOD']=='POST')
{
    $them = $_POST['them'];
    $sua = $_POST['sua'];
    $xoa = $_POST['xoa'];
    
    if($them=='Thêm')
    {
        themtheloai();
        header("Location: ../giaodientheloai.php");
        return;
    }
    if($sua=='Sửa')
    {
        updatetheloai();
        header("Location: ../giaodientheloai.php");
        return;
    }
    if($xoa=='Xóa')
    {
        xoatheloai();
        header("Location: ../giaodientheloai.php");
        return;
    }
}

?>